package com.zhiyou.app.common.util;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.RandomUtil;
import com.zhiyou.app.pojo.enums.NumTypeEnum;

import java.util.Date;

public class GenerateNumUtil {
    public static String generateNum(NumTypeEnum type) {
        return type.name() + DateUtil.format(DateUtil.date(), "YYMMddHHmmss") + RandomUtil.randomString(2).toUpperCase();
    }
}
